<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>




</head>
<body>

{template 'header.html'}








<div class="container">
	
    
    <div class="main">
    	
            <ul class="breadcrumb">
            <li>
            <a href="#">首页</a> <span class="divider">/</span>
            </li>
            <li>
            <a href="{url("?module=wiki")}">百科</a> <span class="divider">/</span>
            </li>
            <li class="active"> {$title}</li>
            </ul>
    
 
        
        <div class="clear">
        	{$content}
        </div>
        
        
        {php list($mod, $field, $value) = array('wiki', 'wikiid', $wikiid);}
        {template 'load.html','comment'}
      
       
    
    <p>
        {if isset($MODULE[error_report])}<a href="javascript:$('#errors').submit();">[错误报告]</a>{/if} 
        {if isset($MODULE[mail])}<a href="javascript:$('#sendmail').submit();">[推荐]</a>{/if} 
        <a href="member/collect.php?contentid={$contentid}&action=add">[收藏]</a>
        <a href="javascript:window.print();">[打印]</a> <a href="javascript:window.close();">[关闭]</a> 
        <a href="{SITE_URL}{$url}#top">[返回顶部]</a> 
    </p>
    </div>
    
    
 
    <div class="aside">
    	
        
    	<div class="head">热门阅读</div>
    	<ul>
          {get sql="SELECT * FROM `table_wiki` WHERE  status=99 ORDER BY wikiid DESC" rows="20" page="$page"}
            <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
            {/get}
          </ul>


       
    </div>
</div>

<script language="javascript" src="?module=wiki&action=count&wikiid={$wikiid}"></script>
{template 'footer.html'}